Skip to content

fix(pm-stack): gate pool-item updatedAt on a real ISO date (#5202) - #9008

Closed
dezren39 wants to merge 1 commit into
mainfrom
queue/8902-5202-poolupd
Closed

dezren39 wants to merge 1 commit into
mainfrom
queue/8902-5202-poolupd

Conversation

@dezren39

@dezren39 dezren39 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Task 8902 (issue #5202). isProjectPoolItem previously accepted any string as a pool item updatedAt; downstream derive.ts momentum/board-recency math Date.parse's it, so impossible dates (2026-02-30 rolls to Mar 2) rolled forward into fabricated this-week activity.

Change (pm-stack/aggregator/src/projects.ts): the updatedAt clause now requires a present non-empty stamp to satisfy the existing isIsoDate gate from validate.ts (real calendar date, round-trip checked). The collector missing-stamp spellings still pass: absent, or the empty string emitted by updatedAt ?? "". Scope kept to updatedAt only, per the packet (no derive.ts threshold/window changes, no other fields).

Tests (test/projects.test.ts, new isProjectPoolItem updatedAt gate describe): valid ISO control passes; 2026-02-30, 2026-04-31, "March 2, 2026", and "not-a-date" are refused; empty-string and absent stamps pass. Local: projects.test.ts 22 pass, feed.test.ts 77 pass, contract-corpus in an earlier targeted run (110 pass across 3 files). The full bun suite under heavy shared-laptop load showed unrelated hook-timeout failures in boot-behavior tests; CI re-runs it on a clean runner.

Closes #5202 on merge.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 12, 2026 20:11
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f92d9049-a7ad-4f80-9083-61e5f3507d85
Commits

Reviewing files that changed from the base of the PR and between be6bf9a and 1772de7.

Files selected for processing: 2

  • pm-stack/aggregator/src/projects.ts
  • pm-stack/aggregator/test/projects.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T20:13:48.914275Z 1772de7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39 dezren39 added work/assigned Queue worker lifecycle state queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 12, 2026
@dezren39

Copy link
Copy Markdown
Member Author

state: closed-already-done
task: 17191
lane: code-d

Closing PR #9008 as already done — its change landed via PR #9039.

Fresh evidence (2026-11-14, task 17191):

@dezren39 dezren39 closed this Nov 14, 2026
@dezren39 dezren39 removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm-stack(aggregator): isProjectPoolItem accepts impossible/non-ISO updatedAt — pool items carry rolled dates into momentum and board-recency math

1 participant